<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory"%>
<%
	Throwable ex = null;
	if (exception != null)
		ex = exception;
	if (request.getAttribute("javax.servlet.error.exception") != null)
		ex = (Throwable) request
				.getAttribute("javax.servlet.error.exception");

	//记录日志
	Logger logger = LoggerFactory.getLogger("500.jsp");
	logger.error(ex.getMessage(), ex);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>500 - 系统内部错误</title>
		<link rel="stylesheet" href="${ctx}/admin/css/admin.css" type="text/css"
			media="all" />
	</head>
	<body>
		<div class="container">
			<div>
				<h1>
					系统发生内部错误.
				</h1>
			</div>
			<div>
				<br />
				非常抱歉，系统发生内部错误，请联系：support@netwaymedia.com，谢谢！
				<br />
				<br />
				<hr />
				<script>
                    document.write("<a name=REDIRECT_URL href='${ctx}'>按此返回首页</a>");
                    setTimeout("REDIRECT_URL.click()",5000);
                  </script>
			</div>
		</div>
	</body>
</html>
